package com.xbongbong.pro.custombutton.pojo;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @date 2021/03/05 11:07
 */
@Getter
@Setter
@ToString
public class CustomButtonActionPojo implements Serializable {

    private static final long serialVersionUID = -3713189600640714145L;
    private Long id;



    private Long formId;

    private Integer saasMark;

    private Integer businessType;

    private Long buttonId;
    /**
     * 执行动作
     * @see com.xbongbong.pro.enums.lowcode.LowCodeActionTypeEnum
     */
    private Integer actionType;

    /**
     * 参数
     */
    private JSONObject param;

    private Integer sort;

    public CustomButtonActionPojo() {
    }

    public CustomButtonActionPojo(Long id, Long buttonId, Integer actionType, JSONObject param, Integer sort) {
        this.id = id;
       this.buttonId = buttonId;
       this.actionType = actionType;
       this.param = param;
        this.sort = sort;
    }
}
